package com.jxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;


@JsonIgnoreProperties(ignoreUnknown=true) //表示JSON转化时忽略未知属性
@TableName("item")
@Data
@Accessors(chain=true)
public class Item extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer itemId;         //商品编号
    private Integer categoryId;     //分类编号
    private String itemTitle;       //商品标题
    private String itemSellPoint;   //商品卖点
    private Double itemPrice;       //商品价格
    private String itemImage;       //商品图片
    private Integer itemStatus;     //商品状态
    private Integer hotItem;        //是否热门商品
    private Integer newItem;        //是否新品
    private Integer itemInventory;  //商品库存
}
